---
title: GitHub Models in GitHub Actions
description: Learn how to use GitHub Models in GitHub Actions to automate your
  workflows and improve your development process.
canonical_url: https://microsoft.github.io/genaiscript/blog/github-models-in-github-actions
authors: pelikhan
date: 2025-04-18
tags:
  - GitHub Actions
  - Automation
  - Workflows
  - Models
  - Development
cover:
  alt: A clean 8-bit illustration uses five corporate colors to show a pixelated
    digital key bridging a GitHub logo and an AI robot icon. A blocky arrow
    links these icons, symbolizing smooth integration and automated workflow.
    There is no text or depiction of people.
  image: ./github-models-in-github-actions.png
excerpt: "Streamlining your CI/CD processes just got easier: GitHub Actions now
  lets you use GITHUB_TOKEN for authentication with GitHub Models. By connecting
  your workflows directly to these AI capabilities, you can sidestep the hassle
  of managing separate personal access tokens and keep your automations secure
  and maintainable. This update supports a seamless integration path for teams
  looking to enhance workflow intelligence within the GitHub ecosystem."

---
import BlogNarration from "../../../components/BlogNarration.astro"

<BlogNarration />

You can now use `GITHUB_TOKEN` from GitHub Actions to authenticate requests to [GitHub Models](https://github.com/marketplace/models)!!!

```yaml title="genai.yml" wrap "models: read" "GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}"
permissions:
  models: read
jobs:
    genai:
        steps:
          run: npx -y genaiscript run ...
            env:
                GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```

This simplifies your workflows by integrating AI capabilities directly into your actions, 
eliminating the need to generate and manage Personal Access Tokens (PATs)!

- [Read GitHub Announcement](https://github.blog/changelog/2025-04-14-github-actions-token-integration-now-generally-available-in-github-models/)
- [Read Documentation](/genaiscript/configuration/github)